<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "mops_subscription".
 *
 * @property int $id
 * @property string $customer_id
 * @property string $message_title
 * @property string $message_body
 * @property string $page_link_url
 * @property string $page_title
 * @property int $created_at
 * @property int $updated_at
 * @property string $product_id
 */
class Subscription extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'mops_subscription';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['created_at', 'updated_at'], 'integer'],
            [['customer_id', 'message_title', 'message_body', 'page_link_url', 'page_title', 'product_id'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'customer_id' => 'Customer ID',
            'message_title' => 'Message Title',
            'message_body' => 'Message Body',
            'page_link_url' => 'Page Link Url',
            'page_title' => 'Page Title',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
            'product_id' => 'Product ID',
        ];
    }
}
